import * as Bowser from 'bowser'

const client = Bowser.parse(window.navigator.userAgent)
const browser = Bowser.getParser(window.navigator.userAgent)

if (!window.$ui) {
  window.$ui = {}
}

window.$ui.client = {
  ...client,
  is (condition) {
    return browser.satisfies(condition)
  }
}
